package com.yangrd.helper.crudhelper.core.crud.ctrl.impl;

import com.yangrd.helper.crudhelper.core.crud.ctrl.SpecHelper;
import com.yangrd.helper.crudhelper.core.support.DomainSpecSupport;
import org.springframework.data.jpa.domain.Specification;

import javax.servlet.http.HttpServletRequest;

/**
 * description: JpaSpecHelper
 *
 * @author: yangrd
 * @date: 2020/10/23
 * @version: 1.0
 */
public class JpaSpecHelper implements SpecHelper {
    @Override
    public Specification<?> toSpec(Class<?> domainClass, HttpServletRequest request) {
        return DomainSpecSupport.toSpec(domainClass, request);
    }
}
